package ch08;

class ExceptionEx06 {
	public static void main(String args[]) {
		try {
			Exception e = new Exception("willful.");
			throw e;
		} catch (Exception e) {
			System.out.println("error message: " + e.getMessage());
			e.printStackTrace();
		}
		System.out.println("quit normal.");
	}
}
/*
error message: willful.
quit normal.
java.lang.Exception: willful.
	at ch08.ExceptionEx06.main(ExceptionEx06.java:6)
*/